# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-clickclick
_pkgname=clickclick
pkgver=20.10.2
pkgrel=10
pkgdesc='Click utility functions'
url='https://pypi.org/project/clickclick/'
license=('Apache')
arch=('any')
depends=('python-click' 'python-yaml')
makedepends=('python-pip' 'python-setuptools' 'flake8')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c566634a1a0cc2a1ff96a76af8545f386a0bfce993cec0edad5d847ccd247f3728dadf436ee2dabd28bd05b4be5075e97b0ea41d5c135d1a3c06db960d2f72eb')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

